package com.crp.unitalinforbaseplat.app.unitalinforbaseplat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EnterStore implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private Integer createUserId;

    private String name;

    private String specifications;

    private String model;

    private String manufacturer;

    private Integer num;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enterTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date validityTime;

    private Integer storeId;

    private String storeName;

    private String applicationName;

    private Integer status;

    private Integer partsId;

    private String verifierOpinion;

    private String managersOpinion;

    private Integer inventoryId;

    private Integer remainNum;

    private static final long serialVersionUID = 1L;

}
